package com.example.leoss.Duquzifu;


import android.text.TextUtils;
import com.example.leoss.R;


public class FileUtils
{
static int i,j;

    public static int getFileIconByPath(String sex)
    {

             i=1;
        int[] ints=new int[]{R.drawable.woaman1,R.drawable.woman2,R.drawable.woman3};
        int[] ints1=new int[]{R.drawable.man1,R.drawable.mam2,R.drawable.man3};

        int iconId= R.drawable.man_wu;
      //  sex= sex.toLowerCase();

        if (!TextUtils.isEmpty(sex)){
            if (sex.equals("男")){



                    iconId = ints1[i];

               // iconId = R.drawable.man1;

            }else if (sex.equals("女"))
            {


                iconId = ints[i];

            }else {
               iconId = R.drawable.man_wu;
            }
        }




        return iconId;
    }


//    public static boolean isExists(String path) {
//        File file = new File(path);
//        return file.exists();
//    }
//
//    public static int getFileType(String path)
//    {
//        path = path.toLowerCase();
//        if (path.endsWith(".doc") || path.endsWith(".docx") || path.endsWith(".xls") || path.endsWith(".xlsx")
//                || path.endsWith(".ppt") || path.endsWith(".pptx")) {
//            return TYPE_DOC;
//        }else if (path.endsWith(".apk")) {
//            return TYPE_APK;
//        }else if (path.endsWith(".zip") || path.endsWith(".rar") || path.endsWith(".tar") || path.endsWith(".gz")) {
//            return TYPE_ZIP;
//        }else{
//            return -1;
//        }
//    }


}
